package com.app.controller;

import com.app.model.response.RetStatus;
import com.app.service.MainpageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Lichaojie on 2017/7/17. It's a beautiful day.
 */
@RequestMapping(value = "/mainpage")
@RestController
public class MainpageController {

    @Autowired
    private MainpageService mainpageService;

    @RequestMapping(value = "/addRecord")
    public RetStatus addRecord(@RequestBody String parameter){
        return mainpageService.addRecord(parameter);
    }
}
